{extend name="layout/common_layout" /}
{block name="body"}
    <!--tab标签-->
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class=""><a href="{:url('admin/sourcecode/index')}">源码管理</a></li>
            <li class="">详情</li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <form class="layui-form form-container">
                    <div class="layui-form-item">
                        <label class="layui-form-label">用户昵称：</label>
                        <div class="layui-input-block">
                            <input type="text"  value="{$detail.u_nickname}" readonly  lay-verify="required" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">源码标题：</label>
                        <div class="layui-input-block">
                            <input type="text"  value="{$detail.sc_title}" readonly  lay-verify="required" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">功能详解：</label>
                        <div class="layui-input-block">
                            <textarea lay-verify="required" class="layui-input">{$detail.sc_content}</textarea>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">视频演示：</label>
                        <div class="layui-input-block">
                            {if condition="$detail.sc_video_demo != ''"}
                            <video src="{$detail.sc_video_demo}"  controls="controls" style="width: 200px;height: 200px;"></video>
                            {/if}
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">联系人姓名：</label>
                        <div class="layui-input-block">
                            <input type="text"  value="{$detail.sc_name}" readonly  lay-verify="required" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">联系人邮箱：</label>
                        <div class="layui-input-block">
                            <input type="text"  value="{$detail.sc_email}" readonly  lay-verify="required" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">联系人电话：</label>
                        <div class="layui-input-block">
                            <input type="text"  value="{$detail.sc_phone}" readonly  lay-verify="required" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">发布状态：</label>
                        <div class="layui-input-block">
                            {if condition="$detail.sc_status == 1"}
                                <input type="text"  value="未发布" readonly  lay-verify="required" class="layui-input">
                            {/if}
                            {if condition="$detail.sc_status == 2"}
                                <input type="text"  value="审核中" readonly  lay-verify="required" class="layui-input">
                            {/if}
                            {if condition="$detail.sc_status == 3"}
                                <input type="text"  value="审核通过" readonly  lay-verify="required" class="layui-input">
                            {/if}
                            {if condition="$detail.sc_status == 4"}
                                <input type="text"  value="审核不通过" readonly  lay-verify="required" class="layui-input">
                            {/if}
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">审核通过时间：</label>
                        <div class="layui-input-block">
                            {if condition="$detail.sc_pass_time != ''"}
                            <input type="text"  value="{$detail.sc_pass_time|date='Y-m-d H:i:s',###}" readonly  lay-verify="required" class="layui-input">
                            {/if}
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">审核不通过时间：</label>
                        <div class="layui-input-block">
                            {if condition="$detail.sc_not_pass_time != ''"}
                            <input type="text"  value="{$detail.sc_not_pass_time|date='Y-m-d H:i:s',###}" readonly  lay-verify="required" class="layui-input">
                            {/if}
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">是否置顶：</label>
                        <div class="layui-input-block">
                            {if condition="$detail.sc_is_top == 1"}
                            <input type="text"  value="不置顶" readonly  lay-verify="required" class="layui-input">
                            {/if}
                            {if condition="$detail.sc_is_top == 2"}
                            <input type="text"  value="置顶" readonly  lay-verify="required" class="layui-input">
                            {/if}
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">置顶时间：</label>
                        <div class="layui-input-block">
                            {if condition="$detail.sc_top_start_time != ''"}
                            <input type="text"  value="{$detail.sc_top_start_time|date='Y-m-d H:i:s',###}" readonly  lay-verify="required" class="layui-input">至
                            {/if}
                            {if condition="$detail.sc_top_end_time != ''"}
                            <input type="text"  value="{$detail.sc_top_end_time|date='Y-m-d H:i:s',###}" readonly  lay-verify="required" class="layui-input">
                            {/if}
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">发布时间：</label>
                        <div class="layui-input-block">
                            <input type="text"  value="{$detail.sc_create_time|date='Y-m-d H:i:s',###}" readonly  lay-verify="required" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            {if condition="$detail.sc_status == 2"}
                                <p class="layui-btn"><a href="{:url('admin/sourcecode/edit',['id'=>$detail['sc_id'], 'status' => $detail['sc_status'], 'res' =>3, 'uid' => $detail['sc_uid'], 'sctitle' => $detail['sc_title']])}" class="ajax-confim">通过</a></p>
                                <p class="layui-btn"><a href="{:url('admin/sourcecode/edit',['id'=>$detail['sc_id'], 'status' => $detail['sc_status'], 'res' =>4, 'uid' => $detail['sc_uid'], 'sctitle' => $detail['sc_title']])}" class="ajax-confim">不通过</a></p>
                            {/if}
                            {if condition="$detail.sc_status == 4"}
                                <p class="layui-btn"><a href="{:url('admin/sourcecode/edit',['id'=>$detail['sc_id'], 'status' => $detail['sc_status'], 'res' =>3, 'uid' => $detail['sc_uid'], 'sctitle' => $detail['sc_title']])}" class="ajax-confim">通过</a></p>
                            {/if}
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
{/block}
{block name="js"}
<!--<script src="__JS__/kindeditor/kindeditor.config.js"></script>-->
<!--<script src="__JS__/kindeditor/kindeditor-all-min.js"></script>-->
<script src="__JS__/ueditor/ueditor.config.js"></script>
<script src="__JS__/ueditor/ueditor.all.min.js"></script>
{/block}
{block name="script"}
<script>

</script>
{/block}